home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: champalber@aol.com (Champalber)
- Newsgroups: comp.lang.c++
- Subject: Using a dialog box as a main window
- Date: 4 Mar 1996 20:59:33 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4hg765$p8c@newsbf02.news.aol.com>
- NNTP-Posting-Host: newsbf02.mail.aol.com
- X-Newsreader: AOL Offline Reader
-
- Does anybody know how to use a dialog resource as your main window,
- (looking at it another way) or how to use the resource Workshop to draw a
- main window?
- I'm using BC++ 3.1 with OWL, and when I say:
-
-
- virtual void InitMainWindow() { MainWindow = new TMyDialog ; }
-
- (where TMyDialog decends from TDialog)
-
-
- It compiles okay, and then when I run, I get "Error: 5" and "Error: 3".
-
- Note: in TurboPascal OWL (Which is almost identical to BC++ OWL), you have
- a decendant of TDialog called TDlgWindow, which I can use to turn a dialog
- box into the main window (just what I want). The help file tells me that
- this class combines a TDialog with some extra stuff. Alas there is no
- TDlgWindow in BC++ OWL.
-
- Richard Champalbert
- champalber@aol.com
-
- Champalbert
- champlaber@aol.com
-